﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DTO
{
    [DataContract]
    public class AdmRespondent : RespondentBase
    {
        [DataMember]
        public AdmJob Job { get; set; }

        [DataMember]
        public int IDTerm { get; set; }

        [DataMember]
        public bool FlagOsnJob { get; set; }

        /// <summary>
        /// Порядковый номер респондента в отделе
        /// </summary>
        [DataMember]
        public int Order { get; set; }

        [DataMember]
        public bool IgnoreVolumes { get; set; }

        [DataMember]
        public bool Dismissed { get; set; }

        public AdmDepartment GetDepartment()
        {
            return this.Department as AdmDepartment;
        }

        public AdmPerson GetPerson()
        {
            return this.Person as AdmPerson;
        }
    }
}
